Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Dmitriy_Prihodko#49

Open
Kollega1984 wants to merge 95 commits intomasterfrom
Feature/Dmitriy_Prihodko
Open

Dmitriy_Prihodko#49
Kollega1984 wants to merge 95 commits intomasterfrom
Feature/Dmitriy_Prihodko

Conversation

@Kollega1984
Copy link
Collaborator

No description provided.

@Kollega1984 Kollega1984 added the readyForReview Sign for Artem to take a look label Jul 14, 2021
@Kollega1984 Kollega1984 changed the title Dmitriy Prihodko Dmitriy_Prihodko Jul 14, 2021
@Kollega1984 Kollega1984 removed the readyForReview Sign for Artem to take a look label Jul 14, 2021
@NikolaevArtem NikolaevArtem added the HW_1 Good to go label Jul 15, 2021
import java.io.IOException;

public class Main {
public static void main(String[] args) throws IOException {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange...
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The names of variables/methods/classes are not always chosen correctly and follow Code Conventions

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well-done! The game is quite comfortable to play, it has a nice interface. Also, you show good knowledge of Java Core and Java libraries, mostly abstractions are chosen correctly, and the structure of the project is quite cool. Here and there are some minor Code Conventions violations, but in general the code is easy to read. Cool implementations of Speaker and Threads!

Approved

| HW2 | [PyramidPrinter](./src/main/java/homework_2/pyramid_printer) <br/> :wrench:[PyramidPrinterTest](./src/test/java/homework_2/pyramid_printer)| App reads the number one time from the command line, and prints a pyramid of "x". |
| HW2 | [RandomCharsTable](./src/main/java/homework_2/random_chars_table) <br/> :wrench:[RandomCharsTableTest](./src/test/java/homework_2/random_chars_table)| App reads width and length of the table array, and strategy keyword (even or odd). App adds random chars from A to Z in table. Prints a table and all even or odd letters. |
| HW3 | [ImmutableClass](./src/main/java/homework_3)| ImmutableClass|
| HW4 | [CustomFileReader](./src/main/java/homework_4/custom_file_reader) <br/> :wrench:[CustomFileReaderTest](./src/test/java/homework_4/custom_file_reader)| This application reads the text from the file, removes commas and periods and them outputs the text to the console. |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: are these still in progress?

}

private boolean regex(String readLine) {
if (readLine.length() < 3) return false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: avoid using if without brackets

Comment on lines 26 to 29
if (a == 0) return 0;
if (a == 1 || b == 0) return 1;
if (b == 1) return a;
return a * recursia(a, b - 1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: please refactor

Cat cat = new Cat("Myrka", 12);
Kitten tom = new Kitten("Tom", 3, "YYY");

KittenToCatFunction kittenToCatFunction = kitten -> new Cat(kitten.getName() + "Cat", kitten.getAge() + 10);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: you could try type conversion in lambda (as example, favourite toy to favourite color or smth like this)

class RandomCharsTableTest extends UnitBase {

@Test
void given_first_bad() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: better if your test cases names follow given_when_then pattern, when can be omitted. Something like givenInvalid_thenRuntimeException

Copy link
Owner

@NikolaevArtem NikolaevArtem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! There are minor changes requested in HW, Course Project looks nice!

@NikolaevArtem NikolaevArtem added HW_5 bug Code fix needed labels Sep 21, 2021
@Kollega1984 Kollega1984 added the readyForReview Sign for Artem to take a look label Sep 21, 2021
@NikolaevArtem NikolaevArtem added HW_3 HW_4 HW_6 and removed bug Code fix needed readyForReview Sign for Artem to take a look labels Sep 23, 2021
Copy link
Owner

@NikolaevArtem NikolaevArtem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HW approved!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants